package com.Test.domain;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class Person implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotBlank(message = "不能为空")
    private String name;

    @NotBlank(message = "不能为空")
    private String field1;
    @NotBlank(message = "不能为空")
    private String field2;
    @NotBlank(message = "不能为空")
    private String field3;
    @NotBlank(message = "不能为空")
    private String field4;
    @NotBlank(message = "不能为空")
    private String field5;
    @NotBlank(message = "不能为空")
    private String field6;
    @NotBlank(message = "不能为空")
    private String field7;
    @NotBlank(message = "不能为空")
    private String field8;
    @NotBlank(message = "不能为空")
    private String field9;
}
